﻿namespace RdpClient.Forms
{
    public partial class FrmDir : Form
    {
        public string DirName = "";

        public FrmDir()
        {
            InitializeComponent();

            this.StartPosition = FormStartPosition.CenterScreen;
            this.FormBorderStyle = FormBorderStyle.FixedDialog;//设置边框为不可调节
            this.MaximizeBox = false; //取消最大化按键
            this.MinimizeBox = false; //取消最小化按键
            this.ShowInTaskbar = false;//不在任务栏显示多个窗体框
        }


        private void FrmDir_Load(object sender, EventArgs e)
        {


            txtDirName.Text = DirName;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            DirName = txtDirName.Text.Trim();
            if (string.IsNullOrWhiteSpace(DirName))
            {
                MessageBox.Show("文件夹名不可为空");
                return;
            }
            this.DialogResult = DialogResult.OK;
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
    }
}
